package com.ruoyi.driver.config;//package com.ruoyi.driver.config;
//
//import org.activiti.engine.ProcessEngineConfiguration;
//import org.activiti.spring.SpringProcessEngineConfiguration;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.transaction.PlatformTransactionManager;
//
//import javax.sql.DataSource;
//
///**
// * @author
// * @version 1.0
// * @description: 流程引擎配置类
// * @date 2025/8/18 16:57
// */
//
//@Configuration
//public class ActivitiConfig {
//
//    @Bean
//    public SpringProcessEngineConfiguration springProcessEngineConfiguration(
//            DataSource dataSource,
//            PlatformTransactionManager transactionManager) {
//        SpringProcessEngineConfiguration spec = new SpringProcessEngineConfiguration();
//        spec.setDataSource(dataSource);
//        spec.setTransactionManager(transactionManager);
//        spec.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
//        spec.setAsyncExecutorActivate(false);
//        return spec;
//    }
//}